﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace TestForm1
{
    public partial class Codedesc : Form
    {
        public Codedesc()
        {
            InitializeComponent();
        }

        public Codedesc(DataTable dt)
        {
            InitializeComponent();
            this.dataGridView1.DataSource = null;
            this.dataGridView1.DataSource = dt;
            this.dataGridView1.AutoGenerateColumns = false;
            this.Text = dt.TableName;
        }
    }
}
